import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'


// 引入qiankun插件
import {registerMicroApps, start} from 'qiankun'
registerMicroApps([
  {
    name: "vueApp", // 应用的名字
    entry: "//localhost:8001", // 默认会加载这个html 解析里面的js 动态的执行 （子应用必须支持跨域）fetch
    container: "#container", // 容器id
    activeRule: "/vue", // 根据路由 激活的路径
  },
  {
    name: "reactApp",
    entry: "//localhost:9001",
    container: "#container",
    activeRule: "/react",
  },
])
start();

// 引入element-ui
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI);
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
